using UnityEngine;

public class TestRoomsButton : MonoBehaviour
{
	public UILabel text;

	protected RoomLook look;

	public void Init(RoomLook look)
	{
		this.look = look;
		base.gameObject.SetActive(true);
		text.text = look.ToString();
	}

	public void OnClick()
	{
		MatchParameters.MatchParams matchParams = MatchParameters.MatchParams.CreateDefault();
		matchParams.roomLook = (int)look;
		BehaviourSingleton<ScreenNavigation>.instance.LoadMatch(matchParams);
	}
}
